package com.daoeping.service.impl;

import com.daoeping.dao.Bzn_questionfollowDAO;
import com.daoeping.data.Bzn_question;
import com.daoeping.data.Bzn_questionfollow;
import com.daoeping.domain.JsonData;
import com.daoeping.domain.Page;
import com.daoeping.domain.TableData;
import com.daoeping.service.Bzn_questionfollowService;

public class Bzn_questionfollowServiceImpl implements Bzn_questionfollowService {
	private Bzn_questionfollowDAO bzn_questionfollowDAO;
	
	public Bzn_questionfollowDAO getBzn_questionfollowDAO() {
		return bzn_questionfollowDAO;
	}

	public void setBzn_questionfollowDAO(Bzn_questionfollowDAO bzn_questionfollowDAO) {
		this.bzn_questionfollowDAO = bzn_questionfollowDAO;
	}

	@Override
	public boolean addBzn_questionfollow(Bzn_questionfollow bzn_questionfollow) {
		return bzn_questionfollowDAO.insertData(bzn_questionfollow);
	}

	@Override
	public Bzn_questionfollow findBzn_questionfollowById(
			Bzn_questionfollow bzn_questionfollow) {
		return bzn_questionfollowDAO.findBzn_questionfollowById(bzn_questionfollow);
	}

	@Override
	public JsonData findAllBzn_questionfollowByPage(Page page,
			TableData tableData, Bzn_question bzn_question) {
		return bzn_questionfollowDAO.findAllBzn_questionfollowByPage(page, tableData, bzn_question);
	}

	@Override
	public boolean delBzn_questionfollow(Bzn_questionfollow bzn_questionfollow) {
		return bzn_questionfollowDAO.deleteData(bzn_questionfollow);
	}

	@Override
	public boolean findBzn_questionfollowByOtherId(Bzn_questionfollow bzn_questionfollow) {
		return bzn_questionfollowDAO.findBzn_questionfollowByOtherId(bzn_questionfollow);
	}

	@Override
	public boolean delBzn_questionfollowByQuestionId(Bzn_question bzn_question) {
		return bzn_questionfollowDAO.delBzn_questionfollowByQuestionId(bzn_question);
	}

}
